-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with swift playgrounds #2335
Conversation
- Added missing import CoreGraphics where needed. - Added missing import UIKit where needed.
Neat idea. Maybe you could add a playground the repo and we could use that instead of the demo project. Good work 👌 |
@petester42 we cool to merge some PRs like this? I think @danielgindi is too busy to review all the PRs :) BTW, Seeing Travis new error type:
While it has a bunch of devices |
I tried to solve the travis configuration error, unfortunately without success. Many PRs are failing due to the same issue. |
@macteo did you just try to replace the device id with any one in the list, for example,
|
Ya that error is probably because some simulators got removed with Xcode 8.3. I'll look at this pull request soon and merge. |
@petester42 I update the device id in #2378 |
@@ -10,6 +10,7 @@ | |||
// | |||
|
|||
import Foundation | |||
import CoreGraphics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's interesting in my Xcode, it never warns or complains missing CoreGraphics
, though IChartDataSet
refers CGPoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since UIKit and AppKit imports CoreGraphics it is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until you try to use it in a Playground
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@macteo shall we consider it's playground bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so as it seems a strict requirement.
Compatibility with swift playgrounds
import CoreGraphics
where needed.import UIKit
where needed.